﻿#pragma once
#include "afxdialogex.h"
#include <string>
#include "CustomProgressCtrl.h"
class CYunDunDefenderDlg;
// CScanWindowDialog 对话框
class CScanWindowDialog : public CDialogEx
{
	DECLARE_DYNAMIC(CScanWindowDialog)

public:
	CScanWindowDialog(CWnd* pParent = nullptr);   // 标准构造函数
	virtual ~CScanWindowDialog();

// 对话框数据
#ifdef AFX_DESIGN_TIME
	enum { IDD = IDD_SCANWINDOW };
#endif

protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV 支持

	DECLARE_MESSAGE_MAP()

public:
	afx_msg void OnSize(UINT nType, int cx, int cy);
	afx_msg void OnBnClickedButtontimeout();
	afx_msg void OnBnClickedButtonstop();
	CYunDunDefenderDlg* m_pParentDlg; // 指向CYunDunDefenderDlg的指针
	void SetProgress(std::wstring& w_porcess);
	void SetPath(std::wstring& w_path);

	void SetForProgress(DWORD& dwclt);
	void SetForDatabase(DWORD& dwclt);
	void AddScanColor(DWORD& dwclt);
private:
	CButton m_ButtonTimeOut;
	CButton m_ButtonStop;
public:
	CDoubleBufferedStatic m_path;
	CStatic m_progress;
	CCustomProgressCtrl m_pro_database;
	CCustomProgressCtrl m_pro_scan;
	CFont m_FontNormal;
	CFont m_FontBold;
	DWORD m_error = 0;
};
